home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 264_01 / mv.doc < prev    next >
Text File  |  1980-01-01  |  1KB  |  32 lines

  1. MV
  2.  
  3. Purpose
  4. move files and directories
  5.  
  6. Syntax
  7. mv [-fiv] [-] file file
  8. mv [-fiv] [-] file... dir
  9. mv [-fiv] [-] dir dir
  10.  
  11. Comments
  12. Mv moves files and, if to the same disk, directories, from one place to
  13. another.  Mv will simply rename each argument, if possible; if not, it
  14. will copy it and delete the original.  It is possible to trick mv into
  15. destroying a file by moving it onto itself (which rewrites and then
  16. removes it).  However, it guards against incomplete moving of directory
  17. trees to different disks by disallowing it; use the combination of cp -r
  18. and rm -r instead.  The destination can otherwise be a drive specifier,
  19. a directory, or a filename. 
  20.  
  21. If a file which would be overwritten has the readonly attribute set, mv
  22. prints a warning message and reads a line from the standard input; if
  23. the line does not begin with 'y' or 'Y', the move does not take place.
  24.  
  25. Options
  26. -       interpret all following arguments as filenames (used to move
  27.         files with names that start with a '-').
  28. -f      force; don't quit if errors are encountered, override any readonly
  29.     attributes, and don't display any error messages.
  30. -i      interactive; ask whether to overwrite existing files.
  31. -v      verbose; display the name of each file as it is moved.
  32.